More igo8 test coverage.
authorrobertl <robertl>
Wed, 23 Jun 2010 06:21:31 +0000 (06:21 +0000)
committerrobertl <robertl>
Wed, 23 Jun 2010 06:21:31 +0000 (06:21 +0000)
testo.d/classic-4.test
testo.d/igo8.test [new file with mode: 0644]
testo.d/sbn.test [new file with mode: 0644]

index 8ea5220cd5576711eb15c41438d60c8726582437..001534e93ce53b0b0ae0f89538259c0be0ab5dca 100755 (executable)
@@ -114,18 +114,6 @@ compare ${TMPDIR}/exif-dat.csv ${REFERENCE}/exif-dat.csv
 gpsbabel -i vidaone -f ${REFERENCE}/track/vidaone.gpb -t -o unicsv -F ${TMPDIR}/vidaone.csv
 compare ${TMPDIR}/vidaone.csv ${REFERENCE}/track/vidaone.csv
 
-# iGo8
-# This format has some jitter in the first 64 bytes of the header.
-# So we read our reference track, spin to GPX.
-# Read that track, spin to igo.
-# read the igo file we just wrote, and spin that to GPX.
-# compare the two GPX files.
-gpsbabel -i igo8 -f ${REFERENCE}/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx
-gpsbabel -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk
-gpsbabel -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx
-compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx
-
-
 # GoPal
 # GoPal is a bit tricky, because it's a lossy format regarding the first field (timetick).
 # so we first read a reference gopal file, and then write it out as gopal trk file, now with a computed timestamp.
diff --git a/testo.d/igo8.test b/testo.d/igo8.test
new file mode 100644 (file)
index 0000000..8518666
--- /dev/null
@@ -0,0 +1,15 @@
+# iGo8
+# This format has some jitter in the first 64 bytes of the header.
+# So we read our reference track, spin to GPX.
+# Read that track, spin to igo.
+# read the igo file we just wrote, and spin that to GPX.
+# compare the two GPX files.
+gpsbabel -i igo8 -f ${REFERENCE}/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx
+gpsbabel -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk
+gpsbabel -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx
+compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx
+#  On 6/23/10, we received reports of IGO files that were trailing padded.
+# verify that one such files converts sensibly to GPX.
+
+gpsbabel -i igo8 -f ${REFERENCE}/track/igo8_padded.trk -o gpx -F ${TMPDIR}/igo8_padded.gpx
+compare reference/track/igo8_padded~gpx.gpx ${TMPDIR}/igo8_padded.gpx
diff --git a/testo.d/sbn.test b/testo.d/sbn.test
new file mode 100644 (file)
index 0000000..354cb3d
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# SBN tracks (Locosys NaviGPS)
+#
+gpsbabel -t -i sbn -f ${REFERENCE}/track/sbn.SBN -o gpx -F ${TMPDIR}/sbn.gpx
+compare ${TMPDIR}/sbn.gpx ${REFERENCE}/track/sbn.gpx
+
+# V1.3 of the firmware added two bytes in the packet
+gpsbabel -t -i sbn -f ${REFERENCE}/track/sbn-v13.sbn -o gpx -F ${TMPDIR}/sbn-v13.gpx
+compare ${TMPDIR}/sbn-v13.gpx ${REFERENCE}/track/sbn-v13.gpx